<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<script>
//   let result = {
//     name: 'zhangsan',
//     age: 20
//   };
//
//   let html = `
// <div>
// 	<span>${result.name}</span>
// </div>
// `;
//   console.log(html);

  const fn = () => {
    return '我是fn函数'
  }
  let html = `我是模板字符串${fn()}`;
  console.log(html) // =>
</script>
</body>
</html>